﻿using System;
using System.Collections.Generic;
using MongoDB.Bson;

namespace QuotationService.HistoryQuotation
{
    /// <summary>
    /// 历史行情数据类
    /// </summary>
    internal class OptionQuotationInfo
    {
        public ObjectId _id;

        #region 属性（数据）

        /// <summary>
        /// 行情编号
        /// </summary>
        public Int32 SN { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        ///记录更新的时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 读取行情记录的时间
        /// </summary>
        public DateTime QuotationTime { get; set; }

        /// <summary>
        /// 加权平均卖价
        /// </summary>
        public double SellAvgPrice { get; set; }

        /// <summary>
        /// 加权平均买价
        /// </summary>
        public double BuyAvgPrice { get; set; }

        /// <summary>
        /// 内盘
        /// </summary>
        public Int64 InnerVolume { get; set; }

        /// <summary>
        /// 外盘
        /// </summary>
        public Int64 OuterVolume { get; set; }

        /// <summary>
        /// 不定盘
        /// </summary>
        public Int64 NotDefineVolume { get; set; }

        /// <summary>
        /// 盘口
        /// </summary>
        public List<OrderBook> BidAsk { get; set; }

        /// <summary>
        /// Tick信息
        /// </summary>
        public OptionTickInfo Tick { get; set; }
        #endregion

    
    }


}
